package net.lcqf.http.constants;

/**
 * 通用配置类
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2021-2025 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2025/2/10 14:34
 * // +----------------------------------------------------------------------
 */
public class Constants {

    /** 令牌有效期 一个星期 */
    public static final long TOKEN_EXPRESS_MINUTES = 10080;

    /** 用户登录token redis存储前缀 */
    public static final String USER_TOKEN_REDIS_KEY_PREFIX = "TOKEN_USER:";

    /** 头部 token令牌key */
    public static final String HEADER_AUTHORIZATION_KEY = "Authorization";

    //------------------------------------------- 日期相关配置 ------------------------------------------------------------

    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static final String DATE_FORMAT_DATE = "yyyy-MM-dd";

    /** 文件、图片上传相关 */
    public static final String UPLOAD_TYPE_IMAGE = "image";
    public static final String UPLOAD_TYPE_FILE = "file";
}
